namespace Ds.DataBase.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class UpdateKaoHeFanWeiRenYuan : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.JiaoZhiGongInfoes", "KaoHeFanWei_RenYuan_khfwryid", c => c.Int());
            CreateIndex("dbo.JiaoZhiGongInfoes", "KaoHeFanWei_RenYuan_khfwryid");
            AddForeignKey("dbo.JiaoZhiGongInfoes", "KaoHeFanWei_RenYuan_khfwryid", "dbo.KaoHeFanWei_RenYuan", "khfwryid");
        }
        
        public override void Down()
        {
            DropForeignKey("dbo.JiaoZhiGongInfoes", "KaoHeFanWei_RenYuan_khfwryid", "dbo.KaoHeFanWei_RenYuan");
            DropIndex("dbo.JiaoZhiGongInfoes", new[] { "KaoHeFanWei_RenYuan_khfwryid" });
            DropColumn("dbo.JiaoZhiGongInfoes", "KaoHeFanWei_RenYuan_khfwryid");
        }
    }
}
